<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyivtbmobEditDlg" widgetVar="PyivtbmobEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyivtbmobTitle}">

            <h:form id="PyivtbmobEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyivtbmobController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyivtbmobLabel_pyivtbmobid}" for="pyivtbmobid" />
                        <h:outputText id="pyivtbmobid" value="#{pyivtbmobController.selected.pyivtbmobid}" />

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_codbien}" for="codbien" />
                        <p:inputText id="codbien" value="#{pyivtbmobController.selected.codbien}" title="#{myBundle.EditPyivtbmobTitle_codbien}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_codbien}"/>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyivtbmobController.selected.descripcion}" title="#{myBundle.EditPyivtbmobTitle_descripcion}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_pyivtbcolorid}" for="pyivtbcolorid" />
                        <p:selectOneMenu id="pyivtbcolorid" value="#{pyivtbmobController.selected.pyivtbcolorid}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_pyivtbcolorid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbcolorController.items}"
                                           var="pyivtbcoloridItem"
                                           itemValue="#{pyivtbcoloridItem}"
                                           itemLabel="#{pyivtbcoloridItem.pyivtbcolorid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbcolorConverter}"/>
                        </p:selectOneMenu>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_materialpred}" for="materialpred" />
                        <p:inputText id="materialpred" value="#{pyivtbmobController.selected.materialpred}" title="#{myBundle.EditPyivtbmobTitle_materialpred}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_materialpred}"/>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_caracteristicas}" for="caracteristicas" />
                        <p:inputText id="caracteristicas" value="#{pyivtbmobController.selected.caracteristicas}" title="#{myBundle.EditPyivtbmobTitle_caracteristicas}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_caracteristicas}"/>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_pyivtbusobienid}" for="pyivtbusobienid" />
                        <p:selectOneMenu id="pyivtbusobienid" value="#{pyivtbmobController.selected.pyivtbusobienid}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_pyivtbusobienid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbusobienController.items}"
                                           var="pyivtbusobienidItem"
                                           itemValue="#{pyivtbusobienidItem}"
                                           itemLabel="#{pyivtbusobienidItem.pyivtbusobienid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbusobienConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_pyivtbestabienid}" for="pyivtbestabienid" />
                        <p:selectOneMenu id="pyivtbestabienid" value="#{pyivtbmobController.selected.pyivtbestabienid}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_pyivtbestabienid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyivtbestabienController.items}"
                                           var="pyivtbestabienidItem"
                                           itemValue="#{pyivtbestabienidItem}"
                                           itemLabel="#{pyivtbestabienidItem.pyivtbestabienid.toString()}"
                                           />
                            <f:converter binding="#{pyivtbestabienConverter}"/>
                        </p:selectOneMenu>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_valoradqu}" for="valoradqu" />
                        <p:inputText id="valoradqu" value="#{pyivtbmobController.selected.valoradqu}" title="#{myBundle.EditPyivtbmobTitle_valoradqu}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_valoradqu}"/>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_valorpresup}" for="valorpresup" />
                        <p:inputText id="valorpresup" value="#{pyivtbmobController.selected.valorpresup}" title="#{myBundle.EditPyivtbmobTitle_valorpresup}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_valorpresup}"/>

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_numerofactura}" for="numerofactura" />
                        <p:inputText id="numerofactura" value="#{pyivtbmobController.selected.numerofactura}" title="#{myBundle.EditPyivtbmobTitle_numerofactura}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_numerofactura}"/>

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_fechacompra}" for="fechacompra" />
                        <p:calendar id="fechacompra" pattern="MM/dd/yyyy" value="#{pyivtbmobController.selected.fechacompra}" title="#{myBundle.EditPyivtbmobTitle_fechacompra}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_refactaentrega}" for="refactaentrega" />
                        <p:inputText id="refactaentrega" value="#{pyivtbmobController.selected.refactaentrega}" title="#{myBundle.EditPyivtbmobTitle_refactaentrega}" />

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{pyivtbmobController.selected.scittbescunid}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_scittbescunid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>
                        
                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyivtbmobController.selected.fecharegistro}" title="#{myBundle.EditPyivtbmobTitle_fecharegistro}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyivtbmobController.selected.observaciones}" title="#{myBundle.EditPyivtbmobTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_observaciones}"/>

                                                <p:outputLabel value="#{myBundle.EditPyivtbmobLabel_pydgtbactivpoaid}" for="pydgtbactivpoaid" />
                        <p:selectOneMenu id="pydgtbactivpoaid" value="#{pyivtbmobController.selected.pydgtbactivpoaid}" required="true" requiredMessage="#{myBundle.EditPyivtbmobRequiredMessage_pydgtbactivpoaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbactivpoaController.items}"
                                           var="pydgtbactivpoaidItem"
                                           itemValue="#{pydgtbactivpoaidItem}"
                                           itemLabel="#{pydgtbactivpoaidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pyfntbactivpoaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyivtbmobController.save}" value="#{myBundle.Save}" update="display,:PyivtbmobListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyivtbmobEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyivtbmobEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
